package com.zhangye.test.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhangye.test.mapper.InterviewMapper;
import com.zhangye.test.model.Interview;

@Service
public class InterviewService {

	@Autowired
	private InterviewMapper interviewMapper;

	
	public List<Interview> selectByWhere(String where){
		 List<Interview> list = interviewMapper.selectByWhere(where);
		 return list;
	}
	
	public int insert(Interview iv){
		 int i  = interviewMapper.insert(iv);
		 return i;
	}
}
